{extend name='public/layout' /}
{block name='content'}
<div class="main garden">
    {include file='xiaoqu/nav' /}
    <div class="garden_md">
        <div class="fy_img clearfix">
            <table class="xq_tab" style="width:1180px;">
                <tr>
                    <td class="td_t">二手房源</td>
                    <td><a href="{:url('Xiaoqu/used',['id'=>$info['id']])}">{$info.second_num}</a>套</td>
                    <td class="td_t">出租房源</td>
                    <td><a href="{:url('Xiaoqu/rental',['id'=>$info['id']])}">{$info.chuzu_num}</a>套</td>

                </tr>
                <tr>
                    <td class="td_t">停车位</td>
                    <td>{$info.attr.chewei}</td>
                    <td class="td_t">绿化率</td>
                    <td>{$info.attr.lhl}</td>
                </tr>
                <tr>
                    <td class="td_t">楼盘类型</td>
                    <td>{:implode(',',$info.estate_type_name)}</td>
                    <td class="td_t">建筑年代</td>
                    <td>{$info.niandai}年</td>
                </tr>
                <tr>
                    <td class="td_t">总户数</td>
                    <td>{$info.attr.hushu}</td>
                    <td class="td_t">容积率</td>
                    <td>{$info.attr.rjl}</td>
                </tr>
                <tr>
                    <td class="td_t">建筑类别</td>
                    <td>{$info.attr.jzlb}</td>
                    <td class="td_t">开发商</td>
                    <td>{$info.attr.kfs}</td>
                </tr>
                <tr>
                    <td class="td_t">装修情况</td>
                    <td>{$info.attr.zxqk}</td>
                    <td class="td_t">产权</td>
                    <td>{$info.attr.chanquan}</td>
                </tr>
                <tr>
                    <td class="td_t">物业费</td>
                    <td>{$info.attr.wuyefee}</td>
                    <td class="td_t">楼盘朝向</td>
                    <td>{$info.attr.loupanzhaoxiang}</td>
                </tr>
                <tr>
                    <td class="td_t">小区地址</td>
                    <td colspan="3">{$info.address}</td>
                </tr>
                <tr>
                    <td class="td_t">物业公司</td>
                    <td colspan="3">{$info.attr.wygs}</td>
                </tr>
                <tr>
                    <td class="td_t">道路交通</td>
                    <td colspan="3">{$info.attr.daolujiaotong}</td>
                </tr>
            </table>
        </div>
        <div class="fy_img garden_xc">
            <div class="title03"><span class="title-selected">配套信息</span></div>
            <table class="xq_tab">
                {php}$peitao=array_filter($info['peitao']);{/php}
                {notempty name='peitao'}
                {notempty name='info.peitao.xuexiao'}
                <tr>
                    <th width="10%">学校</th>
                    <td colspan="90%">{$info.peitao.xuexiao}</td>
                </tr>
                {/notempty}
                {notempty name='info.peitao.gouwu'}
                <tr>
                    <th>购物</th>
                    <td>{$info.peitao.gouwu}</td>
                </tr>
                {/notempty}
                {notempty name='info.peitao.yiyuan'}
                <tr>
                    <th>医院</th>
                    <td>{$info.peitao.yiyuan}</td>
                </tr>
                {/notempty}
                {notempty name='info.peitao.shenghuo'}
                <tr>
                    <th>生活</th>
                    <td>{$info.peitao.shenghuo}</td>
                </tr>
                {/notempty}
                {notempty name='info.peitao.yule'}
                <tr>
                    <th>娱乐</th>
                    <td>{$info.peitao.yule}</td>
                </tr>
                {/notempty}
                {notempty name='info.peitao.canyin'}
                <tr>
                    <th>餐饮</th>
                    <td>{$info.peitao.canyin}</td>
                </tr>
                {/notempty}
                {else /}
                <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=oSxCtoIssCCFFb6WtqfrQrtO"></script>
                <script src="__JS__/peitao.js"></script>
                <tr>
                    <th width="10%">学校(<span id="school_total"></span>)</th>
                    <td width="90%"><span id="school_con"></span></td>
                </tr>
                <tr>
                    <th>购物(<span id="shop_total"></span>)</th>
                    <td><span id="shop_con"></span></td>
                </tr>
                <tr>
                    <th>医院(<span id="yiyuan_total"></span>)</th>
                    <td><span id="yiyuan_con"></span></td>
                </tr>
                <tr>
                    <th>生活(<span id="life_total"></span>)</th>
                    <td> <span id="life_con"></span></td>
                </tr>
                <tr>
                    <th>娱乐(<span id="yule_total"></span>)</th>
                    <td> <span id="yule_con"></span></td>
                </tr>
                <tr>
                    <th>餐饮(<span id="food_total"></span>)</th>
                    <td><span id="food_con"></span></td>
                </tr>
                <div id="allmap" style="display:none;"></div>
                <script type="text/javascript">
                    var lng = '{$info.lng}';
                    var lat = '{$info.lat}';
                    var streetView = 0;
                    BMapApplication.init({'lng' : lng, 'lat' : lat, 'mapContainerId' : 'allmap'});
                    BMapApplication.getAreaMap('学校', 'school');
                    BMapApplication.getAreaMap('超市', 'shop');
                    BMapApplication.getAreaMap('医院', 'yiyuan');
                    BMapApplication.getAreaMap('市场', 'life');
                    BMapApplication.getAreaMap('娱乐', 'yule');
                    BMapApplication.getAreaMap('餐饮', 'food');
                </script>
                {/notempty}
            </table>
        </div>
        <div class="fy_img">
            <div class="title03"><span class="title-selected">地理位置</span></div>
            <iframe width="1180" height="600" frameborder="0" scrolling="no" src="{:url('Api/map',['id'=>$info['id'],'model'=>'estate','lat'=>$info.lat,'lng'=>$info.lng])}" id="main" style="height: 500px; width: 1180px;"></iframe>
        </div>
    </div>

</div>
<link rel="stylesheet" href="__PUBLIC__/js/photo/css/prettyPhoto.css">
<script src="__PUBLIC__/js/photo/jquery.prettyPhoto.js"></script>
<script>
    $(function(){
        $("a[rel^='prettyPhoto']").prettyPhoto();

    });
</script>
{/block}
{/block}